<% @requested_friends = @user.requested_friends -%>
<div class="titlewords" >好友请求[<%= @requested_friends.length%>]</div>
<div class="requested_friends">
	<ul>
		<% @requested_friends.each do |f|%>
		<li>
			<p><%= f.username%>请求加您为好友</p>
			<%= link_to "接受", :controller => "/friendship", :action => "accept", :id => f.username %>
			<%= link_to "拒绝", {:controller => "/friendship", :action => "decline", :id => f.username},
									:confirm => "确定拒绝#{f.username}的请求？" %>
		</li>
		<% end %>
	</ul>
</div>